<?php
session_start();
?>

<!DOCTYPE html>
<html lang="fr">
  <?php include("connection_manager/helper_connection.php"); ?>
  <head>
  <meta charset="utf-8">
  <title>EpiLille</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="./bootstrap/css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
      body {
      padding-top: 60px;
      padding-bottom: 40px;
      }
    </style>
    <link href="./bootstrap/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="images/favicon.ico">
    <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
    <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
  </head>

  <body>
    
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
   <div class="container">
   <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
   <span class="icon-bar"></span>
   <span class="icon-bar"></span>
   <span class="icon-bar"></span>
   </a>
   <a class="brand" href="index.php">Epi Lille</a>
          
	  
   <?php 
   if (isConnected())
     include("includes/menu.php");
   else
     include("includes/form.php");
?>
	  
        </div>
      </div>
    </div>

	<div class="container">
   <?php
   if (isConnected() && is_first_time())
     {
       include("includes/pop_success.php");
     }
   else if (isset($_SESSION["isConnected"]) && $_SESSION["isConnected"] == "false")
     {
       include("includes/pop_error.php");
       disconnect();
     }
   else if (!isConnected())
     {
       include("includes/pop_info.php");
     }
?>
      <hr>
      
      <footer>
        <p>&copy; Epitech 2012</p>
      </footer>

    </div> <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->

<script src="./js/jquery.js"></script>
<script src="./js/bootstrap-alert.js"></script>
  </body>
</html>
